<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

   <form action="" method="post">
       {% csrf_token %}
       <table>

           {{ form.as_table }}


        <tr>
            {% if errors %}
                {% for error in errors %}
                        {{ error.username.0 }}
                {% endfor %}

           {% endif %}
            <td></td>
            <td><input type="submit" value="提交"></td>
        </tr>
    </table>
   </form>
</body>
</html>